Bitmap: Device Dependent Resource |
Bitmap() | |
D2D1_PIXEL_FORMAT GetPixelFormat() | |
D2D1_SIZE_F GetSize() | |
D2D1_SIZE_U GetPixelSize() | |
bool CopyFromBitmap(const D2D1_POINT_2U* destPoint, ID2D1Bitmap* bitmap, const D2D1_RECT_U* srcRect) bool CreateBitmap(Direct::Graphics& graphics, D2D1_SIZE_U size, const D2D1_BITMAP_PROPERTIES & bitmapProperties); bool CreateBitmapFromWicBitmap(Direct::Graphics& graphics, IWICBitmapSource* wicBitmapSource); bool CreateBitmapFromWicBitmap(Direct::Graphics& graphics, IWICBitmapSource * wicBitmapSource, const D2D1_BITMAP_PROPERTIES* bitmapProperties); | |
bool CopyFromMemory(const D2D1_RECT_U* dstRect, const void* srcData, UINT32 pitch) | |
bool CopyFromRenderTarget(const D2D1_POINT_2U* destPoint, ID2D1RenderTarget* renderTarget, const D2D1_RECT_U* srcRect) | |
bool Create(const wchar_t* filename) | |
void Create(Direct::Graphics& graphics, CG::DIBitmap& input) To improve performance, do not call this function every frame | |
void Delete() | |
void GetDpi(float* dpiX, float* dpiY) | |
~ Bitmap() |
GradientStopCollection: Device Dependent Resource |
GradientStopCollection() | |
void Create(Direct::Graphics& graphics, const D2D1_GRADIENT_STOP* gradStops, UINT32 gradStopsCount) | |
void Create(Direct::Graphics& graphics, const D2D1_GRADIENT_STOP* gradStops, UINT32 gradStopsCount, D2D1_GAMMA colorInterpolationGamma, D2D1_EXTEND_MODE extendMode) colorInterpolationGamma=D2D1_GAMMA, D2D1_GAMMA_1_0, D2D1_GAMMA_FORCE_DWORD extendMode=D2D1_EXTEND_MODE_CLAMP, D2D1_EXTEND_MODE_WRAP, D2D1_EXTEND_MODE_MIRROR, D2D1_EXTEND_MODE_FORCE_DWORD | |
void Delete() | |
~ GradientStopCollection() |
Graphics |
D2D1_SIZE_F GetSize() | |
Graphics() | |
ID2D1HwndRenderTarget* GetRenderTarget() | |
bool BeginDraw(HWND hWnd, unsigned __int32 width, unsigned __int32 height, COLORREF color) | |
bool BeginDraw(HWND hWnd, unsigned __int32 width, unsigned __int32 height, float red, float green, float blue, float alpha) | |
bool Resize(HWND hWnd, unsigned __int32 width, unsigned __int32 height) | |
void DrawBitmap(Direct::Bitmap& bitmap, const D2D_RECT_F& rect) | |
void DrawEllipse(const D2D1_ELLIPSE& ellipse, Direct::LinearGradientBrush& brush, float strokeWidth) | |
void DrawEllipse(const D2D1_ELLIPSE& ellipse, Direct::LinearGradientBrush& brush, float strokeWidth, Direct::StrokeStyle& strokeStyle) | |
void DrawEllipse(const D2D1_ELLIPSE& ellipse, Direct::RadialGradientBrush& brush, float strokeWidth) | |
void DrawEllipse(const D2D1_ELLIPSE& ellipse, Direct::RadialGradientBrush& brush, float strokeWidth, Direct::StrokeStyle& strokeStyle) | |
void DrawEllipse(const D2D1_ELLIPSE& ellipse, Direct::SolidBrush& brush, float strokeWidth) | |
void DrawEllipse(const D2D1_ELLIPSE& ellipse, Direct::SolidBrush& brush, float strokeWidth, Direct::StrokeStyle& strokeStyle) | |
void DrawEllipse(float left, float top, float right, float bottom, Direct::SolidBrush& brush, float strokeWidth) | |
void DrawGeometry(Direct::PathGeometry& geometry, Direct::LinearGradientBrush& brush, float strokeWidth) | |
void DrawGeometry(Direct::PathGeometry& geometry, Direct::LinearGradientBrush& brush, float strokeWidth, Direct::StrokeStyle& strokeStyle) | |
void DrawGeometry(Direct::PathGeometry& geometry, Direct::RadialGradientBrush& brush, float strokeWidth) | |
void DrawGeometry(Direct::PathGeometry& geometry, Direct::RadialGradientBrush& brush, float strokeWidth, Direct::StrokeStyle& strokeStyle) | |
void DrawGeometry(Direct::PathGeometry& geometry, Direct::SolidBrush& brush, float strokeWidth) | |
void DrawGeometry(Direct::PathGeometry& geometry, Direct::SolidBrush& brush, float strokeWidth, Direct::StrokeStyle& strokeStyle) | |
void DrawLine(D2D1_POINT_2F p1, D2D1_POINT_2F p2, Direct::SolidBrush& brush, float strokeWidth) | |
void DrawLine(D2D1_POINT_2F p1, D2D1_POINT_2F p2, Direct::SolidBrush& brush, float strokeWidth, Direct::StrokeStyle& strokeStyle) | |
void DrawLine(float x1, float y1, float x2, float y2, Direct::SolidBrush& brush, float strokeWidth) | |
void DrawLine(float x1, float y1, float x2, float y2, Direct::SolidBrush& brush, float strokeWidth, Direct::StrokeStyle& strokeStyle) | |
void DrawRectangle(const D2D1_RECT_F& rect, Direct::LinearGradientBrush& brush, float strokeWidth) | |
void DrawRectangle(const D2D1_RECT_F& rect, Direct::LinearGradientBrush& brush, float strokeWidth, Direct::StrokeStyle& strokeStyle) | |
void DrawRectangle(const D2D1_RECT_F& rect, Direct::RadialGradientBrush& brush, float strokeWidth) | |
void DrawRectangle(const D2D1_RECT_F& rect, Direct::RadialGradientBrush& brush, float strokeWidth, Direct::StrokeStyle& strokeStyle) | |
void DrawRectangle(const D2D1_RECT_F& rect, Direct::SolidBrush& brush, float strokeWidth) | |
void DrawRectangle(const D2D1_RECT_F& rect, Direct::SolidBrush& brush, float strokeWidth, Direct::StrokeStyle& strokeStyle) | |
void DrawRectangle(float left, float top, float right, float bottom, Direct::SolidBrush& brush, float strokeWidth) | |
void DrawRoundedRectangle(const D2D1_ROUNDED_RECT& rect, Direct::LinearGradientBrush& brush, float strokeWidth) | |
void DrawRoundedRectangle(const D2D1_ROUNDED_RECT& rect, Direct::LinearGradientBrush& brush, float strokeWidth, Direct::StrokeStyle& strokeStyle) | |
void DrawRoundedRectangle(const D2D1_ROUNDED_RECT& rect, Direct::RadialGradientBrush& brush, float strokeWidth) | |
void DrawRoundedRectangle(const D2D1_ROUNDED_RECT& rect, Direct::RadialGradientBrush& brush, float strokeWidth, Direct::StrokeStyle& strokeStyle) | |
void DrawRoundedRectangle(const D2D1_ROUNDED_RECT& rect, Direct::SolidBrush& brush, float strokeWidth) | |
void DrawRoundedRectangle(const D2D1_ROUNDED_RECT& rect, Direct::SolidBrush& brush, float strokeWidth, Direct::StrokeStyle& strokeStyle) | |
void DrawTextX(const wchar_t* text, Direct::TextFormat& textFormat, const D2D1_RECT_F& layoutRect, Direct::SolidBrush& brush) | |
void DrawTextX(const wchar_t* text, Direct::TextFormat& textFormat, float x, float y, float width, float height, Direct::SolidBrush& brush) | |
void DrawTextX(const wstring& text, Direct::TextFormat& textFormat, const D2D1_RECT_F& layoutRect, Direct::SolidBrush& brush) | |
void DrawTextX(const wstring& text, Direct::TextFormat& textFormat, float x, float y, float width, float height, Direct::SolidBrush& brush) | |
void EndDraw(bool validate) | |
void FillEllipse(const D2D1_ELLIPSE& ellipse, Direct::LinearGradientBrush& brush) | |
void FillEllipse(const D2D1_ELLIPSE& ellipse, Direct::RadialGradientBrush& brush) | |
void FillEllipse(const D2D1_ELLIPSE& ellipse, Direct::SolidBrush& brush) | |
void FillEllipse(float left, float top, float right, float bottom, Direct::SolidBrush& brush) | |
void FillGeometry(Direct::PathGeometry& geometry, Direct::LinearGradientBrush& brush) | |
void FillGeometry(Direct::PathGeometry& geometry, Direct::RadialGradientBrush& brush) | |
void FillGeometry(Direct::PathGeometry& geometry, Direct::SolidBrush& brush) | |
void FillRectangle(const D2D1_RECT_F& rect, Direct::LinearGradientBrush& brush) | |
void FillRectangle(const D2D1_RECT_F& rect, Direct::RadialGradientBrush& brush) | |
void FillRectangle(const D2D1_RECT_F& rect, Direct::SolidBrush& brush) | |
void FillRectangle(float left, float top, float right, float bottom, Direct::SolidBrush& brush) | |
void FillRoundedRectangle(const D2D1_ROUNDED_RECT& rect, Direct::LinearGradientBrush& brush) | |
void FillRoundedRectangle(const D2D1_ROUNDED_RECT& rect, Direct::RadialGradientBrush& brush) | |
void FillRoundedRectangle(const D2D1_ROUNDED_RECT& rect, Direct::SolidBrush& brush) | |
void SetTransform(const D2D1_MATRIX_3X2_F& transform) | |
~ Graphics() |
IDevice |
virtual bool _Create(Direct::Graphics& graphics)= 0 | |
virtual bool _IsDifferent() = 0 | |
virtual void _Delete() = 0 |
LinearGradientBrush: Device Dependent Resource |
D2D1_POINT_2F GetEndPoint() | |
D2D1_POINT_2F GetStartPoint() | |
LinearGradientBrush() | |
void Create(Direct::Graphics& graphics, float x1, float y1, float x2, float y2, Direct::GradientStopCollection& gradStopCol) | |
void Delete() | |
void GetGradientStopCollection(ID2D1GradientStopCollection* * out_collection) | |
void SetEndPoint(D2D1_POINT_2F point) | |
void SetStartPoint(D2D1_POINT_2F point) | |
~ LinearGradientBrush() |
PathGeometry: Device-Independent Resource |
PathGeometry() | |
bool Close() | |
bool Open(Direct::Graphics& graphics) | |
void AddArc(const D2D1_ARC_SEGMENT& arc) | |
void AddArc(const D2D1_ARC_SEGMENT* arc) | |
void AddBezier(const D2D1_BEZIER_SEGMENT& bezier) | |
void AddBezier(const D2D1_BEZIER_SEGMENT* bezier) | |
void AddBeziers(const D2D1_BEZIER_SEGMENT* beziers, UINT32 beziersCount) | |
void AddLine(D2D1_POINT_2F point) | |
void AddLines(const D2D1_POINT_2F* points, UINT32 pointsCount) | |
void AddQuadraticBezier(const D2D1_QUADRATIC_BEZIER_SEGMENT& bezier) | |
void AddQuadraticBezier(const D2D1_QUADRATIC_BEZIER_SEGMENT* bezier) | |
void AddQuadraticBeziers(const D2D1_QUADRATIC_BEZIER_SEGMENT* beziers, UINT32 beziersCount) | |
void BeginFigure(D2D1_POINT_2F startPoint, D2D1_FIGURE_BEGIN figureBegin) D2D1_FIGURE_BEGIN_FILLED D2D1_FIGURE_BEGIN_HOLLOW D2D1_FIGURE_BEGIN_FORCE_DWORD | |
void Delete() | |
void EndFigure(D2D1_FIGURE_END figureEnd) D2D1_FIGURE_END_OPEN D2D1_FIGURE_END_CLOSED D2D1_FIGURE_END_FORCE_DWORD | |
void SetFillMode(D2D1_FILL_MODE fillMode) D2D1_FILL_MODE_ALTERNATE D2D1_FILL_MODE_WINDING D2D1_FILL_MODE_FORCE_DWORD | |
void SetSegmentFlags(D2D1_PATH_SEGMENT vertexFlags) | |
~ PathGeometry() |
RadialGradientBrush: Device Dependent Resource |
D2D1_POINT_2F GetCenter() | |
D2D1_POINT_2F GetGradientOriginOffset() | |
RadialGradientBrush() | |
float GetRadiusX() | |
float GetRadiusY() | |
void Create(Direct::Graphics& graphics, float centerX, float centerY, float gradOffsetX, float gradOffsetY, float radiusX, float radiusY, Direct::GradientStopCollection& gradStopCol) | |
void Delete() | |
void GetGradientStopCollection(ID2D1GradientStopCollection* * gradientStopCollection) | |
void SetCenter(D2D1_POINT_2F center) | |
void SetGradientOriginOffset(D2D1_POINT_2F gradientOriginOffset) | |
void SetRadiusX(float radiusX) | |
void SetRadiusY(float radiusY) | |
~ RadialGradientBrush() |
SolidBrush: Device Dependent Resource |
COLORREF GetColorRef() const | |
SolidBrush() | |
const D2D1_COLOR_F& GetColor() const | |
void Create(Direct::Graphics& graphics, COLORREF color) | |
void Create(Direct::Graphics& graphics, const D2D1_COLOR_F& color) | |
void Create(Direct::Graphics& graphics, float red, float green, float blue, float alpha) red [0.0 1.0], green [0.0 1.0], blue [0.0 1.0], alpha [0.0 1.0] | |
void Delete() | |
void SetColor(COLORREF color) | |
void SetColor(const D2D1_COLOR_F& color) | |
~ SolidBrush() |
StrokeStyle: Device-Independent Resource |
StrokeStyle() | |
bool Create(Direct::Graphics& graphics, D2D1_CAP_STYLE startCap, D2D1_CAP_STYLE endCap, D2D1_CAP_STYLE dashCap, D2D1_LINE_JOIN lineJoin, float miterLimit, D2D1_DASH_STYLE dashStyle, float dashOffset, const float* pattern, unsigned int patternSize) | |
bool Create(Direct::Graphics& graphics, const D2D1_STROKE_STYLE_PROPERTIES& prop, const float* pattern, unsigned int patternSize) | |
void Delete() | |
~ StrokeStyle() |
TextFormat: Device-Independent Resource |
TextFormat() | |
bool Create(Direct::Graphics& graphics, const LOGFONT& logfont, const wchar_t* localeName) localeName: L"en-us" | |
bool Create(Direct::Graphics& graphics, const wchar_t* fontFamilyName, bool isBold, bool isItalic, float size, const wchar_t* localeName) fontFamilyName: L"Arial" size: 72.0f localeName: L"en-us" | |
bool SetParagraphAlignment(DWRITE_PARAGRAPH_ALIGNMENT alignment) DWRITE_PARAGRAPH_ALIGNMENT_NEAR, DWRITE_PARAGRAPH_ALIGNMENT_FAR, DWRITE_PARAGRAPH_ALIGNMENT_CENTER | |
bool SetTextAlignment(DWRITE_TEXT_ALIGNMENT alignment) DWRITE_TEXT_ALIGNMENT_LEADING, DWRITE_TEXT_ALIGNMENT_TRAILING, DWRITE_TEXT_ALIGNMENT_CENTER, DWRITE_TEXT_ALIGNMENT_JUSTIFIED | |
const wchar_t* GetFontName() | |
float GetFontSize() | |
void Delete() | |
void GetLogfont(LOGFONT& out_logfont) | |
~ TextFormat() |